<?php

if (!defined('BASEPATH'))
    exit('No direct script access allowed');

/**
 * Init Model
 *
 */
class Admin_cms_model extends CI_Model {
    /**
     * User data, stored for embeded methods
     *
     * @access 	private
     * @var 	array
     */

    /**
     * Constructor
     *
     * @uses 	get_settings
     * @return 	void
     */
    function __construct() {
        parent::__construct();
        log_message('debug', 'Init Model Initialized');
    }

    function get_cms() {
        if (!$this->db->table_exists('cms')) {

            return FALSE;
        }
        $this->db->select('*')->from('cms');
        $this->db->order_by('id');
        $query = $this->db->get();
        $result = $query->result();
        return $result;
    }

}